import request from '@/router/axios';
const urlPrefix = '/admin';
export function list(data) {
    return request.post(urlPrefix + '/user/list', data);
}

export function checkUserStatus({ id, status }) {
    return request.post(urlPrefix + '/user/check-user-status', { id, status });
}

// 实名认证审核 
export function checkRealAuth({ id, checkStatus, remark = '' }) {
    return request.post(urlPrefix + '/user/check_real_auth', {
        userId: id,
        checkStatus,
        remark
    });
}
// 批量实名认证审核 
export function batchCheckRealAuth({ ids, checkStatus, remark = '' }) {
    return request.post(urlPrefix + '/user/check_real_auth', {
        ids,
        checkStatus,
        remark
    });
} 

export function resetPwd(id){
    return request.post(urlPrefix + '/user/reset-pwd',{id});
}
